#ifndef IMPORTHOMES_H
#define IMPORTHOMES_H
#include "grepticinohousesobjekt.h"
#include "DB_Manager.h"
#include "soarequest.h"
#include "CalendarStructure.h"
/* attributi da 1000  a http://ticino.ch/immagini/icone_caratteristiche/attribute_1060.gif */
class ImportHomes : public QObject
{
     Q_OBJECT

 
public:
ImportHomes( DB_Manager * dbin , int tipo = 2 , QObject * parent = 0 );
void StartCaseGet();
void GetEurorate();

protected:
     DB_Manager *db;
     int tipocasa;
     int successi;
     void Get_ItemList( QString stream );
     void LeggiSoloUno( const int numert );
     SoaRequest *soa;
     bool SessionRunnging;
     bool Continuergo;
     int desiderio;
private:
      QSettings setter;
     bool ConnectionDB;
     void ImageAttributeGet();
     bool Permission( const int id );
     QMap<int,QString> id_cpa_list;
     QMap<int,QStringList> imagepics;
     int passaggi;
     int SessionCall;
     QMap<int,RequestSoa*> pending;
     QMap<int,QDomDocument> entrati;
     void MultiRequestStart( QDomDocument stream );
     int Summreciver;
     int Contatore;
     QProgressDialog *progress;
     void LaunchGetImage(const int nr );
     
signals:
     void EndProcessing();
     void play(QString);
public slots:
     void SessionGlobal( bool e );
     void Job( const int jobnummer );
     void GLogout();
     void Exit();
     void ErrorFound();
     void childFinished( int hid , int nr  );
     void ProcessingInList();
     void ExitChainer();
     void stream_in(const int nr );
     void Euroarriva(int numero ,int numhttp );

};
//
#endif // IMPORTHOMES_H

